package com.haixiaoke.saas.bill.service.impl;

import com.haixiaoke.saas.bill.domain.YmDistrict;
import com.haixiaoke.saas.bill.mapper.YmDistrictMapper;
import com.haixiaoke.saas.bill.service.IYmDistrictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 翼码地区数据Service业务层处理
 *
 * @author qixi
 * @date 2024-06-25
 */
@Service
public class YmDistrictServiceImpl implements IYmDistrictService {
    @Autowired
    private YmDistrictMapper ymDistrictMapper;

    /**
     * 查询翼码地区数据
     *
     * @param id 翼码地区数据主键
     * @return 翼码地区数据
     */
    @Override
    public YmDistrict selectYmDistrictById(Long id) {
        return ymDistrictMapper.selectYmDistrictById(id);
    }

    /**
     * 查询翼码地区数据列表
     *
     * @param ymDistrict 翼码地区数据
     * @return 翼码地区数据
     */
    @Override
    public List<YmDistrict> selectYmDistrictList(YmDistrict ymDistrict) {
        return ymDistrictMapper.selectYmDistrictList(ymDistrict);
    }

    @Override
    public List<YmDistrict> selectYmDistrictProvinceList() {
        return ymDistrictMapper.selectYmDistrictProvinceList();
    }

    @Override
    public List<YmDistrict> selectYmDistrictCityListByProvinceCode(String provinceCode) {
        return ymDistrictMapper.selectYmDistrictCityListByProvinceCode(provinceCode);
    }

    @Override
    public List<YmDistrict> selectYmDistrictCityListByProvinceCodeAndCityCode(String provinceCode, String cityCode) {
        return ymDistrictMapper.selectYmDistrictCityListByProvinceCodeAndCityCode(provinceCode, cityCode);
    }
}
